package com.CRApp.service;

import com.CRApp.pojo.Posts;
import com.CRApp.pojo.PostDetailsDTO;
import com.CRApp.pojo.Comment;
import com.CRApp.pojo.CommentDTO;

import java.util.List;

/**
 * @ClassName: PostsService
 * @Author : LuoFan洛樊
 * @Date : 2025/3/29 - 16:09
 * Description : TODO
 */
public interface PostsService {
    List<Posts> getPostsList(Integer currentUserId);
    PostDetailsDTO getPostDetails(Integer postId);
    List<Comment> getPostComments(Integer postId);
    void addComment(CommentDTO commentDTO, Integer currentUserId);
    Integer createPost(Posts post, List<String> imageUrls);
    boolean isCollected(Integer userId, Integer postId);
    boolean toggleCollection(Integer userId, Integer postId);
    List<Posts> getUserCollections(Integer userId);
}
